package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WidthBucketFunction implements NumericValueFunction {

    private int beginIndex;
    private int endIndex;
    private NumericValueExpression widthBucketOperand;
    private NumericValueExpression widthBucketBound1;
    private NumericValueExpression widthBucketBound2;
    private NumericValueExpression widthBucketCount;

    public WidthBucketFunction(int beginIndex,
                               int endIndex,
                               NumericValueExpression widthBucketOperand,
                               NumericValueExpression widthBucketBound1,
                               NumericValueExpression widthBucketBound2,
                               NumericValueExpression widthBucketCount) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.widthBucketOperand = widthBucketOperand;
        this.widthBucketBound1 = widthBucketBound1;
        this.widthBucketBound2 = widthBucketBound2;
        this.widthBucketCount = widthBucketCount;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public NumericValueExpression getWidthBucketOperand() {
        return widthBucketOperand;
    }

    public NumericValueExpression getWidthBucketBound1() {
        return widthBucketBound1;
    }

    public NumericValueExpression getWidthBucketBound2() {
        return widthBucketBound2;
    }

    public NumericValueExpression getWidthBucketCount() {
        return widthBucketCount;
    }

}
